<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
{% extends 'base.html' %}
{% block content%}

{% if form.errors %}
<p>你的账户密码不匹配，请重新输入</p>
{% endif %}

<form method="post" action="{% url 'users:login' %}">
    {% csrf_token %}
    {{ form.as_p }}
    <button name="submit">登录</button>
    <input type="hidden" name="next" value="{% url 'learnings:index %}">
</form>

{% endblock %}
</body>
</html>